<?php
include 'config.inc.php';
$data = $_POST;
mysql_query("insert into wwk_chat_msg values(null, '{$data['nickname']}', '{$data['username']}', '{$data['time']}', '{$data['time']}', '{$data['msg']}', '{$data['avatar']}', '0', '{$data['level']}')");
$a = array(
    'code' => 1,
    'msg' => 'success'
);
echo json_encode($a);
